﻿function onNodeTypeSelected(radWindow, returnValue) {
    if (returnValue && returnValue.NodeTypeId) {
        if (returnValue.ParentNodeId) {
            location.href = "/medianamik/contentmanagement/nodemanagement.aspx?typeid=" + returnValue.NodeTypeId + "&parentnodeid=" + returnValue.ParentNodeId;
        }
        else {
            location.href = "/medianamik/contentmanagement/nodemanagement.aspx?typeid=" + returnValue.NodeTypeId;
        }
    }

    radWindow.Close();
}